package com.app.game.bet.simple;

import com.app.game.other.Credit;

public class BetHalf extends BetOneToOne{
	public static enum Type{FIRST_HALF,SECOND_HALF};
	
	private Type type;
	public BetHalf(Type type){
		this.type = type;
	}
	@Override
	protected boolean isWin(int result) {
		
		if(type == Type.FIRST_HALF && result >= 1 && result <=18){
			return true;
		}
		if(type == Type.SECOND_HALF && result >=19 && result <=36){
			return true;
		}
		return false;
	}

}
